@@ -108,8 +108,8 @@ group :development, :test do |
||
108 | 108 |
gem 'delorean' |
109 | 109 |
gem 'webmock', '~> 1.17.4', require: false |
110 | 110 |
gem 'coveralls', require: false |
111 |
- # gem 'spring' |
|
112 |
- # gem 'spring-commands-rspec' |
|
111 |
+ gem 'spring' |
|
112 |
+ gem 'spring-commands-rspec' |
|
113 | 113 |
end |
114 | 114 |
|
115 | 115 |
group :production do |
@@ -317,6 +317,9 @@ GEM |
||
317 | 317 |
slop (3.6.0) |
318 | 318 |
spectrum-rails (1.3.4) |
319 | 319 |
railties (>= 3.1) |
320 |
+ spring (1.1.3) |
|
321 |
+ spring-commands-rspec (1.0.2) |
|
322 |
+ spring (>= 0.9.1) |
|
320 | 323 |
sprockets (2.11.0) |
321 | 324 |
hike (~> 1.2) |
322 | 325 |
multi_json (~> 1.0) |
@@ -447,6 +450,8 @@ DEPENDENCIES |
||
447 | 450 |
shoulda-matchers |
448 | 451 |
slack-notifier (~> 0.5.0) |
449 | 452 |
spectrum-rails |
453 |
+ spring |
|
454 |
+ spring-commands-rspec |
|
450 | 455 |
therubyracer (~> 0.12.1) |
451 | 456 |
twilio-ruby (~> 3.11.5) |
452 | 457 |
twitter (~> 5.8.0) |
@@ -7,12 +7,14 @@ unless defined?(Spring) |
||
7 | 7 |
require "rubygems" |
8 | 8 |
require "bundler" |
9 | 9 |
|
10 |
- if match = Bundler.default_lockfile.read.match(/^GEM$.*?^ spring \((.*?)\)$.*?^$/m) |
|
10 |
+ case lockfile = Bundler.default_lockfile.read |
|
11 |
+ when /^GEM$.*?^ spring \((.*?)\)$.*?^$/m |
|
12 |
+ version = $1 |
|
11 | 13 |
ENV["GEM_PATH"] = ([Bundler.bundle_path.to_s] + Gem.path).join(File::PATH_SEPARATOR) |
12 |
- ENV["GEM_HOME"] = "" |
|
14 |
+ ENV["GEM_HOME"] = "" unless /^GIT$/ === lockfile |
|
13 | 15 |
Gem.paths = ENV |
14 | 16 |
|
15 |
- gem "spring", match[1] |
|
17 |
+ gem "spring", version |
|
16 | 18 |
require "spring/binstub" |
17 | 19 |
end |
18 | 20 |
end |